from rest_framework.views import APIView
from rest_framework.response import Response

# 导入日志对象
from utils.loggers import logger


class HelloView(APIView):
    def get(self, request):
        logger.warning('当前进入到HelloView视图类中')
        return Response('hello')
